//
//  LoginServer.h
//  HiQ
//
//  Created by arvintan on 12-7-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Connection.h"
#import "LoginDelegate.h"
#import "PacketDispathCenter.h"

@interface LoginServer : NSObject
{
    Connection* connection;
    id<LoginDelegate> delegate;
    
    NSTimer *loginTimeOut;
}

@property (nonatomic,strong) id<LoginDelegate> delegate;

- (void) sendMsg:(NSString *)msg;
-(void) sendLoginMsg:(NSString *)name Password:(NSString*) password;

- (id) initWithHost:(NSString*)host andPort:(int)port;
-(void) onReceiveLoginPacket:(NSData *)data;

+(id) sharedLoginServer;

@end
